#ifndef DPGHEADER_H
#define DPGHEADER_H 
#include <stdio.h>
#include <stdint.h>
enum Error
{
	/*
 	 * parsing error code
 	 */
	BAD_IDENT,
	BAD_CONTROL_1,
	BAD_CONTROL_2,
	FILE_TOO_SLOW,
	FILE_CORRUPT,
	/*
 	 * file error code
 	 */ 
	FILE_NOT_EXIST,
	CANT_OPEN_FILE,
	/*
 	 * convert error code
 	 */
	CANT_CREATE_PIPELINE,
:w
	/*
 	 * misc error code
 	 */
	MALLOC_FALL,
	BAD_ARGS,
	/*
 	 * no error 
 	 */
	FILE_OK
};
typedef enum Error Error;
struct DpgHeader
{
	FILE* file;
	char* filename_audio;
	char* filename_video;
	uint8_t raw_data[36];
	uint32_t nb_frames;
	uint16_t fps;
	uint32_t sample_rate;
	uint32_t len_audio_file;
	uint32_t len_video_file;
	uint32_t bigin_audio_file;
	uint32_t bigin_video_file;
	Error error;
};
typedef struct DpgHeader DpgHeader;
#endif
